﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

namespace WEBSITE.BLL
{
    public class SanPhamBLL
    {
        ProshopService.ProshopServiceClient client = new ProshopService.ProshopServiceClient();

        public DataSet dsSanPham(int chungloai, int loaihang, string namelike, int nsx, string sapxep, decimal minprice, decimal maxprice)
        {
            try
            {
                return client.dsSanPham(chungloai, loaihang, namelike, nsx, sapxep, minprice, maxprice);
            }
            catch (Exception)
            {
                
                return null;
            }
        }

        public DataSet ctSanPham(int masp)
        {
            try
            {
                return client.ctSanPham(masp);
            }
            catch (Exception)
            {
                
                return null;
            }
        }
    }
}